﻿using System;
using System.Web.Mvc;

namespace RefLib.IOC
{
    public class IocModelBinder : DefaultModelBinder
    {
        protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, Type modelType)
        {
            return SingletonContainer.Resolve<object>(modelType);
        }
    }
}
